package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGameRoomWaterLineLog implements IQLResponse
{
    /// <summary>
    /// 服务器Id
    /// </summary>
    public long ServerId;

    /// <summary>
    /// 房间配置Id
    /// </summary>
    public long ConfigId;

    /// <summary>
    /// 台子Id
    /// </summary>
    public long PlatformId;

    /// <summary>
    /// 其实水位线
    /// </summary>
    public long WaterLineOriginal;

    /// <summary>
    /// 水位线修改值，>0代表放水 <0代表抽水
    /// </summary>
    public long WaterLineDelta;

    /// <summary>
    /// 操作员
    /// </summary>
    public String Operator;

    /// <summary>
    /// 操作时间
    /// </summary>
    public String CreateTime;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("server_id"))
            ServerId = t.getLong("server_id");
        if (t.has("config_id"))
            ConfigId = t.getLong("config_id");
        if (t.has("platform_id"))
            PlatformId = t.getLong("platform_id");
        if (t.has("water_line_original"))
            WaterLineOriginal = t.getLong("water_line_original");
        if (t.has("water_line_delta"))
            WaterLineDelta = t.getLong("water_line_delta");
        if (t.has("operator"))
            Operator = t.getString("operator");
        if (t.has("create_time"))
            CreateTime = t.getString("create_time");
    }
}
